#include <stdio.h>

int main (int argc, const char * argv[]) {
    int n;
	double e=1, factoral=1;
	printf("n e\n");
	printf("- -----------\n");
	printf("0 1.000000000\n");
	for (n=1; n<=9; n++) {
		factoral /= n;
		e += factoral;
		printf("%d %.9f\n",n,e);
	}
    return 0;
}
